#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<math.h>
int main()
{
	int a = 0;
	for (a = 101; a < 200; a += 2)
	{
		int b = 0;
		for (b = 1; b <= sqrt(a); b++)
		{
			if (a % b == 0)
			{
				printf("%d ", a);
				break;
			}
		}
		if (a % 10 == 1)
			printf("\n");
	}
	return 0;
}